home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
gfx
/
pbm
/
amigasrc.lzh
/
extra
/
src
/
Makefile.amiga
Wrap
Makefile
|
1992-03-19
|
2KB
|
74 lines
# Makefile for extra tools.
#
# Copyright (C) 1992 by Ingo Wilken.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation. This software is provided "as is" without express or
# implied warranty.
CC = dcc
CFLAGS = -O0 -E DCC_ERRORS -T RAM: -ffp -ms -mu -gs -proto -mRR
LDFLAGS =
BINDIR = /bin
PPMDIR = //ppm
INCLUDEPPM = -I$(PPMDIR)
LIBPPM = $(PPMDIR)/libppm_sr.lib
LARGELIBPPM = $(PPMDIR)/libppm_lr.lib
DEFPPM = $(PPMDIR)/ppm.h
DEFLIBPPM = $(PPMDIR)/libppm.h
PGMDIR = //pgm
INCLUDEPGM = -I$(PGMDIR)
LIBPGM = $(PGMDIR)/libpgm_sr.lib
LARGELIBPGM = $(PGMDIR)/libpgm_lr.lib
DEFPGM = $(PGMDIR)/pgm.h
DEFLIBPGM = $(PGMDIR)/libpgm.h
PBMDIR = //pbm
INCLUDEPBM = -I$(PBMDIR)
LIBPBM = $(PBMDIR)/libpbm_sr.lib
LARGELIBPBM = $(PBMDIR)/libpbm_lr.lib
DEFPBM = $(PBMDIR)/pbm.h //pbmplus.h
DEFLIBPBM = $(PBMDIR)/libpbm.h
INCLUDE = -I// $(INCLUDEPPM) $(INCLUDEPGM) $(INCLUDEPBM)
ALLCFLAGS = $(CFLAGS) $(INCLUDE)
PORTBINARIES = ppmtomitsu ppmto500c
MATHBINARIES =
BINARIES = $(PORTBINARIES) $(MATHBINARIES)
SCRIPTS =
PORTOBJECTS = ppmtomitsu.o ppmto500c.o
OBJECTS = $(PORTOBJECTS)
all: bindir binaries
bindir:
-makedir $(BINDIR)
binaries: $(BINARIES)
# Rules for plain programs.
$(PORTBINARIES): $(DEFPPM) $(DEFPGM) $(DEFPBM) $(LIBPNM) $(LIBPPM) $(LIBPGM) $(LIBPBM)
$(CC) -r $(ALLCFLAGS) $(LDFLAGS) -o $(BINDIR)/$@ $@.c -l $(LIBPPM) -l $(LIBPGM) -l $(LIBPBM)
# Other dependencies.
ppmtomitsu ppmtomitsu.o: ppmtomitsu.c mitsu.h $(PPMDIR)/ppmcmap.h
ppmto500c ppmto500c.o: ppmto500c.c
clean:
-delete \#?.o \#?.lib DCC_ERRORS
cleanbin: clean
-delete $(BINDIR) all